package com.haiqi.modules.ship.service;

import com.haiqi.common.persistence.dao.GuanZhuMapper;
import com.haiqi.common.persistence.entity.GuanZhu;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by liuxiayan on 2017/6/6.
 */
@Service
public class GuanZhuService {
    @Autowired
    private GuanZhuMapper guanZhuMapper;
    public List<GuanZhu> select(GuanZhu guanZhu){
        return guanZhuMapper.select(guanZhu);
    }

    public boolean insertGZ(GuanZhu guanZhu){
        return guanZhuMapper.insertGZ(guanZhu);
    }
    public GuanZhu findById(Integer id){
       return   guanZhuMapper.findById(id);
    }
    public boolean deleteGZ(Integer id){return guanZhuMapper.deleteGZ(id);}
    public GuanZhu findByName(String name){
        return guanZhuMapper.findByName(name);
    }
}
